package com.ruoyi.business.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyi.common.annotation.ExcelDictFormat;
import com.ruoyi.common.annotation.Translation;
import com.ruoyi.common.constant.TransConstant;
import com.ruoyi.common.convert.ExcelDictConvert;
import lombok.Data;

import java.io.Serializable;

/**
 * 地址簿信息视图对象 site_info
 *
 * @author ruoyi
 * @date 2024-04-20
 */
@Data
@ExcelIgnoreUnannotated
public class SiteInfoVo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 地址簿id
     */
    @ExcelProperty(value = "地址簿id")
    private Long siteId;

    /**
     * 账号id(当前)
     */
    @ExcelProperty(value = "账号id(当前)")
    private Long relevanceUserId;

    /**
     * 姓名
     */
    @ExcelProperty(value = "姓名")
    private String name;

    /**
     * 手机号
     */
    @ExcelProperty(value = "")
    private String phone;

    /**
     * 寄件人省
     */
    private Long province;

    /**
     * 寄件人省
     */
    @ExcelProperty(value = "寄件人省")
    @Translation(type = TransConstant.AREA_ID_TO_NAME, mapper = "province")
    private String provinceName;

    /**
     * 寄件人市
     */
    private Long city;

    /**
     * 寄件人市
     */
    @ExcelProperty(value = "寄件人市")
    @Translation(type = TransConstant.AREA_ID_TO_NAME, mapper = "city")
    private String cityName;

    /**
     * 寄件人区
     */

    private Long district;

    /**
     * 寄件人区
     */
    @ExcelProperty(value = "寄件人区")
    @Translation(type = TransConstant.AREA_ID_TO_NAME, mapper = "district")
    private String districtName;

    /**
     * 寄件人地址
     */
    @ExcelProperty(value = "寄件人地址")
    private String address;

    /**
     * 经度
     */
    @ExcelProperty(value = "经度")
    private String longitude;

    /**
     * 纬度
     */
    @ExcelProperty(value = "纬度")
    private String latitude;

    /**
     * 公司名称
     */
    @ExcelProperty(value = "公司名称")
    private String companyName;

    /**
     * 是否默认（Y是 N否）
     */
    @ExcelProperty(value = "是否默认", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "Y=是,N=否")
    private String isDefault;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

    /**
     * 其他参数
     */
    @ExcelProperty(value = "其他参数")
    private String elseParams;

    /**
     * 删除标志（0代表存在 1代表删除）
     */
    @ExcelProperty(value = "删除标志", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=代表存在,1=代表删除")
    private Integer isDeleted;

}
